package IteratorAndComposite.composite.waitess;

import IteratorAndComposite.composite.interfaces.MenuComponent;

/**
 * @Author: pengzx
 * @Description:
 * @Date: 11:27 2017/9/26
 * @Modified by: 1.0
 */
public class Waitess {
    MenuComponent allMenus;

    public Waitess(MenuComponent allMenus)
    {
        this.allMenus = allMenus;
    }

    public void printMenu(){
        allMenus.print();
    }
}
